using MediatR;
using B.S.RbacData.ErrorCode;

namespace SupplierCustomerManagement.Read.API.Applications.Commands.suppliers
{
    /// <summary>
    /// 获取供应商列表查询命令
    /// </summary>
    public class GetSuppliersQuery : IRequest<ApiPaging<SupplierListDto>>
    {
        /// <summary>
        /// 页码（从1开始）
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 供应商编号（模糊查询）
        /// </summary>
        public string? SupplierCode { get; set; }

        /// <summary>
        /// 供应商名称（模糊查询）
        /// </summary>
        public string? SupplierName { get; set; }

        /// <summary>
        /// 供应商类型（个人/企业）
        /// </summary>
        public string? SupplierType { get; set; }

        /// <summary>
        /// 负责人电话（模糊查询）
        /// </summary>
        public string? ContactPhone { get; set; }

       
        /// <summary>
        /// 所属市场（模糊查询）
        /// </summary>
        public string? AffiliatedMarket { get; set; }

        /// <summary>
        /// 服务人员（模糊查询）
        /// </summary>
        public string? ServicePersonnel { get; set; }

        /// <summary>
        /// 使用状态（启用/停用）
        /// </summary>
        public string? Status { get; set; }

        /// <summary>
        /// 是否归档
        /// </summary>
        public bool? IsArchived { get; set; }

    }
}